package com.azier.generator;

import com.azier.kapacitor.util.CollectionUtil;
import com.azier.kapacitor.util.StringUtil;
import lombok.Getter;
import lombok.Setter;

import java.beans.Transient;
import java.util.List;

/**
 * 1 * @Author: luoj
 * 2 * @Date: 2019/11/11 17:26
 * 3
 */
@Setter
@Getter
public class Method {
    private String name;
    //DoubleQuotesArg,LambdaArg,OriginalArg,SingleQuotesArg
    private String note;

    private String noteEn;

    private List<Arg> args;

    @Transient
    public boolean isEmpty(){
        if(StringUtil.isEmpty(name)&& CollectionUtil.isEmpty(args)){
            return true;
        }
        return false;
    }

}
